/*
 * @Description: 孵化接口
 * @Author: XuYang 
 * @Date: 2019-06-09 12:45:51 
 * @Last Modified by: XuYang
 * @Last Modified time: 2019-06-14 13:45:41
 */

import { AjaxServer } from './index';

/**
 * 孵化统计
 * @param {object} params 参数
 */
export async function getHatchStatisticsDataApi(token) {
  return AjaxServer('get', '/v1/incubation/revenueStatistics',token);
}
/**
 * 孵化记录
 * @param {} token 
 * @param {*} params 
 */
export async function getHatchListDataApi(token,params){
  return AjaxServer('get', '/v1/incubation/earningsRecord',token,params);
}
/**
 * 锁仓
 * @param {*} token 
 * @param {*} params 
 */
export async function depositApi(token,params){
  return AjaxServer('post', '/v1/incubation/deposit',token, {} ,params);
}
/**
 * 申请解锁
 * @param {*} token 
 * @param {*} params 
 */
export async function applyUnlockApi(token,params){
  return AjaxServer('post', '/v1/incubation/apply_unlock',token, {} ,params);
}
/**
 * 收益记录
 */
export async function getProfitLogApi(token,params){
  return AjaxServer('get','/v1/incubation/profitlog',token, params)
}